﻿@model GPS.ENTITYS.CrudModelDHV_HS

@{
    ViewBag.Title = "Sửa hồ sơ học viên";
}

<style type="text/css">
    .btn-file {
        position: relative;
        overflow: hidden;
    }

        .btn-file input[type=file] {
            position: absolute;
            top: 0;
            right: 0;
            min-width: 100%;
            min-height: 100%;
            font-size: 100px;
            text-align: right;
            filter: alpha(opacity=0);
            opacity: 0;
            background: red;
            cursor: inherit;
            display: block;
        }

    input[readonly] {
        background-color: white !important;
        cursor: text !important;
    }
</style>

@using (Html.BeginForm("Edit", "GPS_HocVienHoSo", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
    @Html.AntiForgeryToken()


    @Html.ValidationSummary(true)

    <div id="tabs">
        <ul>
            <li><a href="#tabs-1">Hồ sơ học viên</a></li>

        </ul>

        <div id="tabs-1">
            @Html.Hidden("IsEdit", 0)

            <div id="tabs-1">
                @Html.Hidden("IsEdit", 0)

                <fieldset class="fdb-scheduler-border">
                    <legend class="fdb-scheduler-border">Thông tin hồ sơ học viên</legend>

                    <div class="row margin-top-05">
                        <div class="col-md-2 control-label">
                            Mã Hồ sơ học viên
                        </div>
                        <div class="col-md-4">
                            @Html.TextBoxFor(model => model.HV_HS_HV_MA, new { @class = "form-control", @id = "HV_HS_HV_MA", @readonly = "readonly" })
                            @Html.ValidationMessageFor(model => model.HV_HS_HV_MA)
                        </div>

                        <div class="col-md-2 control-label text-left">
                            Mã đơn vị GTVT
                        </div>
                        <div class="col-md-4">
                            @*@Html.DropDownListFor(model => model.HV_HS_DVGTVT_MA, (SelectList)ViewBag.HV_HS_DVGTVT_MAs, string.Empty, new { @class = "form-control", @style = "width:300px", @id = "HV_HS_DVGTVT_MA" })*@
                            @Html.TextBoxFor(model => model.HV_HS_DVGTVT_MA, new { @class = "form-control", @id = "HV_HS_DVGTVT_MA", @style = "width:100%;max-width:100%;" })
                            @Html.ValidationMessageFor(model => model.HV_HS_DVGTVT_MA)
                            <span id="rDataDVGTVT_MA" style="width:500px"></span>
                            <div class="help-tip">
                                <p>Gõ mã hoặc Tên Đơn vị  để hiển thị danh sách đơn vị </p>
                            </div>
                        </div>
                    </div>


                    <div class="row margin-top-05">
                        <div class="col-md-2 control-label">
                            Số Hồ sơ học viên
                        </div>
                        <div class="col-md-4">
                            @Html.TextBoxFor(model => model.HV_HS_SOHS, new { @class = "form-control" })
                            @Html.ValidationMessageFor(model => model.HV_HS_SOHS)
                        </div>
                        <div class="col-md-2 control-label">
                            Mã đơn vị GTVT nhận
                        </div>
                        <div class="col-md-4">

                            @*@Html.DropDownListFor(model => model.HV_HS_DVGTVT_MA_NHANHS, (SelectList)ViewBag.HV_HS_DVGTVT_MAs, string.Empty, new { @class = "form-control", @style = "width:300px", @id = "HV_HS_DVGTVT_MA_NHANHS" })*@
                            @Html.TextBoxFor(model => model.HV_HS_DVGTVT_MA_NHANHS, new { @class = "form-control", @id = "HV_HS_DVGTVT_MA_NHANHS", @style = "width:100%;max-width:100%;" })
                            @Html.ValidationMessageFor(model => model.HV_HS_DVGTVT_MA_NHANHS)
                            <span id="rDataDVGTVT_MAHV_HS_DVGTVT_MA_NHANHS" style="width:500px"></span>
                            <div class="help-tip">
                                <p>Gõ mã hoặc Tên Đơn vị  để hiển thị danh sách đơn vị </p>
                            </div>
                        </div>

                    </div>


                    <div class="row margin-top-05">
                        <div class="col-md-2 control-label">
                            Ngày nhận hồ sơ
                        </div>
                        <div class="col-md-4">
                            @Html.TextBoxFor(model => model.HV_HS_NGAY_NHANHS, "{0:dd/MM/yyyy}", new { @class = "form-control", @style = "width:120px" })

                        </div>

                        <div class="col-md-2 control-label">
                            Người nhận hồ sơ
                        </div>
                        <div class="col-md-4">
                            @Html.TextBoxFor(model => model.HV_HS_NGUOI_NHANHS, new { @class = "form-control" })

                        </div>
                    </div>

                    <div class="row margin-top-05">
                        <div class="col-md-2 control-label">
                            Ngày hẹn trả hồ sơ
                        </div>
                        <div class="col-md-4">
                            @Html.TextBoxFor(model => model.HV_HS_NGAYHENTRA, "{0:dd/MM/yyyy}", new { @class = "form-control", @style = "width:120px" })

                        </div>

                        <div class="col-md-2 control-label">
                            Loại hồ sơ
                        </div>
                        <div class="col-md-4">
                            @Html.DropDownListFor(model => model.HV_HS_HOSO_MA, (SelectList)ViewBag.HV_HS_HOSO_MAs, string.Empty, new { @class = "form-control", @style = "width:300px", @id = "HV_HS_HOSO_MA" })
                            @Html.ValidationMessageFor(model => model.HV_HS_HOSO_MA)

                        </div>
                    </div>

                    <div class="row margin-top-05">
                        <div class="col-md-2 control-label">
                            Tiến trình xử lý hồ sơ
                        </div>
                        <div class="col-md-4">
                            @Html.DropDownListFor(model => model.HV_HS_TTRINHXL_MA, (SelectList)ViewBag.HV_HS_TTRINHXL_MAs, string.Empty, new { @class = "form-control", @style = "width:300px", @id = "HV_HS_TTRINHXL_MA" })
                            @Html.ValidationMessageFor(model => model.HV_HS_TTRINHXL_MA)

                        </div>

                        <div class="col-md-2 control-label">
                            Chất lượng ảnh
                        </div>
                        <div class="col-md-4">
                            @Html.DropDownListFor(model => model.HV_HS_CHATLUONGANH, new List<SelectListItem>
                                {
                                                    new SelectListItem() {Text = "HD", Value="1"},
                                                    new SelectListItem() {Text = "Full HD", Value="2"}

                                }, new { @class = "form-control", @style = "width:150px" })
                        </div>
                    </div>

                    <div class="row margin-top-05">
                        <div class="col-md-2 control-label">
                            Ảnh hồ sơ
                        </div>
                        <div class="col-md-4">

                            <div class="input-group">
                                <span style="cursor:pointer" class="input-group-btn">
                                    <span style="cursor:pointer" class="btn btn-primary btn-file">
                                        Chọn file&hellip; <input type="file" style="cursor:pointer" name="vHV_HS_ANH" id="vHV_HS_ANH" onchange="preview_image(event)" />
                                    </span>
                                </span>
                                <input type="text" class="form-control" style="height:34px" readonly>
                            </div>

                            <img id="output_image" width="50px" height="50px" />
                        </div>

                        <div class="col-md-2 control-label">

                        </div>
                        <div class="col-md-4">

                        </div>
                    </div>

                    <div class="row margin-top-05">
                        <div class="col-md-2 control-label">
                            Ngày nhận ảnh
                        </div>
                        <div class="col-md-4">
                            @Html.TextBoxFor(model => model.HV_HS_NGAYNHANANH, "{0:dd/MM/yyyy}", new { @class = "form-control", @style = "width:120px" })

                        </div>

                        <div class="col-md-2 control-label">
                            Người nhận ảnh
                        </div>
                        <div class="col-md-4">
                            @Html.TextBoxFor(model => model.HV_HS_NGUOINHANANH, new { @class = "form-control" })
                        </div>
                    </div>

                    <div class="row margin-top-05">
                        <div class="col-md-2 control-label">
                            Số giấy phép đã có
                        </div>
                        <div class="col-md-4">
                            @Html.TextBoxFor(model => model.HV_HS_SOGPLXDACO, new { @class = "form-control" })

                        </div>

                        <div class="col-md-2 control-label">
                            Hạng giấy phép đã có
                        </div>
                        <div class="col-md-4">
                            @Html.TextBoxFor(model => model.HV_HS_HANGGPLXDACO, new { @class = "form-control" })
                        </div>
                    </div>

                    <div class="row margin-top-05">
                        <div class="col-md-2 control-label">
                            Đơn vị cấp phép đã có
                        </div>
                        <div class="col-md-4">
                            @Html.TextBoxFor(model => model.HV_HS_DONVICAPGPLXDACO, new { @class = "form-control" })

                        </div>

                        <div class="col-md-2 control-label">
                            Nơi cấp phép đã có
                        </div>
                        <div class="col-md-4">
                            @Html.TextBoxFor(model => model.HV_HS_NOICAPGPLXDACO, new { @class = "form-control" })
                        </div>
                    </div>
                    <div class="row margin-top-05">
                        <div class="col-md-2 control-label">
                            Ngày cấp phép đã có
                        </div>
                        <div class="col-md-4">
                            @Html.TextBoxFor(model => model.HV_HS_NGAYCAPGPLXDACO, "{0:dd/MM/yyyy}", new { @class = "form-control", @style = "width:120px" })

                        </div>

                        <div class="col-md-2 control-label">
                            Ngày hết hạn cấp phép đã có
                        </div>
                        <div class="col-md-4">
                            @Html.TextBoxFor(model => model.HV_HS_NGAYHHGPLXDACO, "{0:dd/MM/yyyy}", new { @class = "form-control", @style = "width:120px" })

                        </div>
                    </div>
                    <div class="row margin-top-05">
                        <div class="col-md-2 control-label">
                            Ngày trúng tuyển hồ sơ đã có
                        </div>
                        <div class="col-md-4">
                            @Html.TextBoxFor(model => model.HV_HS_NGAYTTGPLXDACO, "{0:dd/MM/yyyy}", new { @class = "form-control", @style = "width:120px" })

                        </div>

                        <div class="col-md-2 control-label">
                            Mã DVGT đã có
                        </div>
                        <div class="col-md-4">
                            @*@Html.DropDownListFor(model => model.HV_HS_DVGTVT_MA_GPLXDACO, (SelectList)ViewBag.HV_HS_DVGTVT_MAs, string.Empty, new { @class = "form-control", @style = "width:300px", @id = "HV_HS_DVGTVT_MA_GPLXDACO" })*@
                            @Html.TextBoxFor(model => model.HV_HS_DVGTVT_MA_GPLXDACO, new { @class = "form-control", @id = "HV_HS_DVGTVT_MA_GPLXDACO", @style = "width:100%;max-width:100%;" })
                            @Html.ValidationMessageFor(model => model.HV_HS_DVGTVT_MA_GPLXDACO)
                            <span id="rDataDVGTVT_HV_HS_DVGTVT_MA_GPLXDACO" style="width:500px"></span>
                            <div class="help-tip">
                                <p>Gõ mã hoặc Tên Đơn vị  để hiển thị danh sách đơn vị </p>
                            </div>

                        </div>
                    </div>
                    <div class="row margin-top-05">
                        <div class="col-md-2 control-label">
                            Năm học lái xe đã có
                        </div>
                        <div class="col-md-4">
                            @Html.TextBoxFor(model => model.HV_HS_NAMHOCLXDACO, new { @class = "form-control", @type = "number" })

                        </div>

                        <div class="col-md-2 control-label">
                            Hạng đào tạo đã có
                        </div>
                        <div class="col-md-4">
                            @Html.DropDownListFor(model => model.HV_HS_HANGDT_MA_GPLXDACO, (SelectList)ViewBag.HV_HANGDT_MAs, string.Empty, new { @class = "form-control" })

                        </div>
                    </div>
                    <div class="row margin-top-05">
                        <div class="col-md-2 control-label">
                            Số năm lái xe
                        </div>
                        <div class="col-md-4">
                            @Html.TextBoxFor(model => model.HV_HS_SONAMLX, new { @class = "form-control", @type = "number" })

                        </div>

                        <div class="col-md-2 control-label">
                            Số KM an toàn
                        </div>
                        <div class="col-md-4">
                            @Html.TextBoxFor(model => model.HV_HS_SOKMLXANTOAN, new { @class = "form-control", @type = "number" })
                        </div>
                    </div>
                    <div class="row margin-top-05">
                        <div class="col-md-2 control-label">
                            Có giấy CNSK
                        </div>
                        <div class="col-md-4">
                            @Html.DropDownListFor(model => model.HV_HS_COGIAYCNSK, new List<SelectListItem>
                                {
                                                    new SelectListItem() {Text = "Có", Value="1"},
                                                    new SelectListItem() {Text = "Không", Value="0"}

                                }, new { @class = "form-control", @style = "width:150px" })

                        </div>

                        <div class="col-md-2 control-label">
                            Lý do cấp đổi
                        </div>
                        <div class="col-md-4">
                            @Html.TextBoxFor(model => model.HV_HS_LYDOCAPDOI, new { @class = "form-control" })
                        </div>
                    </div>

                    <div class="row margin-top-05">
                        <div class="col-md-2 control-label">
                            Mục đích cấp đổi
                        </div>
                        <div class="col-md-4">
                            @Html.TextBoxFor(model => model.HV_HS_MUCDICHCAPDOI, new { @class = "form-control" })

                        </div>

                        <div class="col-md-2 control-label">
                            Nội dung sát hạch
                        </div>
                        <div class="col-md-4">
                            @Html.DropDownListFor(model => model.HV_HS_NOIDUNGSH, (SelectList)ViewBag.HV_HS_NOIDUNGSHs, string.Empty, new { @class = "form-control" })
                        </div>
                    </div>

                    <div class="row margin-top-05">
                        <div class="col-md-2 control-label">
                            Mã lớp học
                        </div>
                        <div class="col-md-4">
                            @Html.TextBoxFor(model => model.HV_HS_KH_LOP_MA, new { @class = "form-control" })
                            @*Auto complete search lớp học TABLE: DKH_LOP*@
                        </div>

                        <div class="col-md-2 control-label">
                            Hạng đào tạo
                        </div>
                        <div class="col-md-4">
                            @Html.DropDownListFor(model => model.HV_HS_HANGDT_MA, (SelectList)ViewBag.HV_HANGDT_MAs, string.Empty, new { @class = "form-control" })
                        </div>
                    </div>

                    <div class="row margin-top-05">
                        <div class="col-md-2 control-label">
                            Số giấy chứng nhận tốt nghiệp
                        </div>
                        <div class="col-md-4">
                            @Html.TextBoxFor(model => model.HV_HS_SOGIAYCNTN, new { @class = "form-control" })

                        </div>

                        <div class="col-md-2 control-label">
                            Số chứng chỉ nghề
                        </div>
                        <div class="col-md-4">
                            @Html.TextBoxFor(model => model.HV_HS_SOCCN, new { @class = "form-control" })
                        </div>
                    </div>

                    @*<div class="row margin-top-05">
                    <div class="col-md-2 control-label">
                        HV_HS_MABC1
                    </div>
                    <div class="col-md-4">
                        @Html.DropDownListFor(model => model.HV_HS_MABC1, new List<SelectListItem>
                                {
                                                    new SelectListItem() {Text = "Có", Value="1"},
                                                    new SelectListItem() {Text = "Không", Value="0"}

                                }, new { @class = "form-control", @style = "width:150px" })

                    </div>

                    <div class="col-md-2 control-label">
                        HV_HS_BC1_TUOITS
                    </div>
                    <div class="col-md-4">
                        @Html.TextBoxFor(model => model.HV_HS_SOCCN, new { @class = "form-control",@type="number" })
                    </div>
                </div>
                <div class="row margin-top-05">
                    <div class="col-md-2 control-label">
                        HV_HS_BC1_THAMNIEN
                    </div>
                    <div class="col-md-4">
                        @Html.TextBoxFor(model => model.HV_HS_BC1_THAMNIEN, new { @class = "form-control", @type = "number" })

                    </div>

                    <div class="col-md-2 control-label">
                        HV_HS_MABC2
                    </div>
                    <div class="col-md-4">
                        @Html.TextBoxFor(model => model.HV_HS_SOCCN, new { @class = "form-control" })
                    </div>
                </div>*@

                    <div class="row margin-top-05">
                        @*<div class="col-md-2 control-label">
                        HV_HS_KETQUABC2
                    </div>
                    <div class="col-md-4">
                        @Html.TextBoxFor(model => model.HV_HS_KETQUABC2, new { @class = "form-control", @type = "number" })

                    </div>*@

                        @*<div class="col-md-2 control-label">
                        HV_HS_LYDO_MA
                    </div>
                    <div class="col-md-4">
                        @Html.DropDownListFor(model => model.HV_HS_LYDO_MA, new List<SelectListItem>
                                {
                                                    new SelectListItem() {Text = "Lí do 1", Value="1"},
                                                    new SelectListItem() {Text = "Lí do 2", Value="2"}

                                }, new { @class = "form-control", @style = "width:150px" })
                    </div>*@
                    </div>

                    <div class="row margin-top-05">
                        <div class="col-md-2 control-label">
                            Mã kỳ sát hạch
                        </div>
                        <div class="col-md-4">
                            @Html.TextBoxFor(model => model.HV_HS_MAKYSH, new { @class = "form-control" })
                            @*Auto complete search lớp học TABLE: DSH*@
                        </div>

                        <div class="col-md-2 control-label">
                            Số báo danh
                        </div>
                        <div class="col-md-4">
                            @Html.TextBoxFor(model => model.HV_HS_SOBAODANH, new { @class = "form-control" })
                        </div>
                    </div>

                    <div class="row margin-top-05">
                        <div class="col-md-2 control-label">
                            Lần sát hạch
                        </div>
                        <div class="col-md-4">
                            @Html.TextBoxFor(model => model.HV_HS_LANSH, new { @class = "form-control", @type = "number" })

                        </div>

                        <div class="col-md-2 control-label">
                            Số quyết định sát hạch
                        </div>
                        <div class="col-md-4">
                            @Html.TextBoxFor(model => model.HV_HS_SOQDSH, new { @class = "form-control" })
                        </div>
                    </div>

                    <div class="row margin-top-05">
                        <div class="col-md-2 control-label">
                            Ngày QĐ sát hạch
                        </div>
                        <div class="col-md-4">
                            @Html.TextBoxFor(model => model.HV_HS_NGAYQDSH, "{0:dd/MM/yyyy}", new { @class = "form-control", @style = "width:120px" })

                        </div>

                        <div class="col-md-2 control-label">
                            Kết quả lí thuyết
                        </div>
                        <div class="col-md-4">
                            @Html.TextBoxFor(model => model.HV_HS_KQLT, new { @class = "form-control", @type = "number" })
                        </div>
                    </div>

                    <div class="row margin-top-05">
                        <div class="col-md-2 control-label">
                            Nhận xét lý thuyết
                        </div>
                        <div class="col-md-4">
                            @Html.TextBoxFor(model => model.HV_HS_NXLT, new { @class = "form-control" })

                        </div>

                        <div class="col-md-2 control-label">
                            Kết quả hỉnh
                        </div>
                        <div class="col-md-4">
                            @Html.TextBoxFor(model => model.HV_HS_KQHINH, new { @class = "form-control", @type = "number" })
                        </div>
                    </div>

                    <div class="row margin-top-05">
                        <div class="col-md-2 control-label">
                            Nhận xét hình
                        </div>
                        <div class="col-md-4">
                            @Html.TextBoxFor(model => model.HV_HS_NXHINH, new { @class = "form-control" })

                        </div>

                        <div class="col-md-2 control-label">
                            Kết quả đường
                        </div>
                        <div class="col-md-4">
                            @Html.TextBoxFor(model => model.HV_HS_KQDUONG, new { @class = "form-control", @type = "number" })
                        </div>
                    </div>

                    <div class="row margin-top-05">
                        <div class="col-md-2 control-label">
                            Nhận xét đường
                        </div>
                        <div class="col-md-4">
                            @Html.TextBoxFor(model => model.HV_HS_NXDUONG, new { @class = "form-control" })

                        </div>

                        <div class="col-md-2 control-label">
                            Kết quả sát hạch
                        </div>
                        <div class="col-md-4">
                            @Html.TextBoxFor(model => model.HV_HS_KQSH, new { @class = "form-control" })
                        </div>
                    </div>

                    <div class="row margin-top-05">
                        <div class="col-md-2 control-label">
                            Số quyết định trúng tuyển
                        </div>
                        <div class="col-md-4">
                            @Html.TextBoxFor(model => model.HV_HS_SOQDTT, new { @class = "form-control" })

                        </div>

                        <div class="col-md-2 control-label">
                            Ngày quyết định trúng tuyển
                        </div>
                        <div class="col-md-4">
                            @Html.TextBoxFor(model => model.HV_HS_NGAYQDTT, "{0:dd/MM/yyyy}", new { @class = "form-control", @style = "width:120px" })

                        </div>
                    </div>

                    <div class="row margin-top-05">
                        <div class="col-md-2 control-label">
                            Người ký
                        </div>
                        <div class="col-md-4">
                            @Html.TextBoxFor(model => model.HV_HS_NGUOIKY, new { @class = "form-control" })

                        </div>

                        <div class="col-md-2 control-label">
                            Mô tả
                        </div>
                        <div class="col-md-4">
                            @Html.TextBoxFor(model => model.HV_HS_MOTA, new { @class = "form-control" })

                        </div>
                    </div>

                    @*<div class="row margin-top-05">
                    <div class="col-md-2 control-label">
                        HV_HS_NGAYKTBC1
                    </div>
                    <div class="col-md-4">
                        @Html.TextBoxFor(model => model.HV_HS_NGAYKTBC1, "{0:dd/MM/yyyy}", new { @class = "form-control", @style = "width:120px" })

                    </div>

                    <div class="col-md-2 control-label">
                        HV_HS_NGUOIKTBC1
                    </div>
                    <div class="col-md-4">
                        @Html.TextBoxFor(model => model.HV_HS_NGUOIKTBC1, new { @class = "form-control" })

                    </div>
                </div>
                <div class="row margin-top-05">
                    <div class="col-md-2 control-label">
                        HV_HS_NGAYKTBC2
                    </div>
                    <div class="col-md-4">
                        @Html.TextBoxFor(model => model.HV_HS_NGAYKTBC2, "{0:dd/MM/yyyy}", new { @class = "form-control", @style = "width:120px" })

                    </div>

                    <div class="col-md-2 control-label">
                        HV_HS_NGUOIKTBC2
                    </div>
                    <div class="col-md-4">
                        @Html.TextBoxFor(model => model.HV_HS_NGUOIKTBC2, new { @class = "form-control" })

                    </div>
                </div>*@

                    <div class="row margin-top-05">
                        <div class="col-md-2 control-label">
                            Mã in bằng
                        </div>
                        <div class="col-md-4">
                            @Html.TextBoxFor(model => model.HV_HS_MAIN, new { @class = "form-control" })

                        </div>

                        <div class="col-md-2 control-label">
                            Kết quả sát hạch đối soát TW
                        </div>
                        <div class="col-md-4">
                            @Html.TextBoxFor(model => model.HV_HS_KQDSTW, new { @class = "form-control", @type = "number" })

                        </div>
                    </div>
                    <div class="row margin-top-05">
                        <div class="col-md-2 control-label">
                            Mô tả sát hạch đối soát TW
                        </div>
                        <div class="col-md-4">
                            @Html.TextBoxFor(model => model.HV_HS_MOTAKQDSTW, new { @class = "form-control" })

                        </div>

                        <div class="col-md-2 control-label">
                            Chứ ký
                        </div>
                        <div class="col-md-4">
                            @Html.TextBoxFor(model => model.HV_HS_CHUKY, new { @class = "form-control" })

                        </div>
                    </div>

                    <div class="row margin-top-05">
                        <div class="col-md-2 control-label">
                            Hình thức cấp
                        </div>
                        <div class="col-md-4">

                            @Html.DropDownListFor(model => model.HV_HS_MAHTCAP, (SelectList)ViewBag.HV_HS_MAHTCAPs, string.Empty, new { @class = "form-control" })
                        </div>

                        @*<div class="col-md-2 control-label">
                        HV_HS_IDS
                    </div>
                    <div class="col-md-4">
                        @Html.TextBoxFor(model => model.HV_HS_IDS, new { @class = "form-control",@type="number" })

                    </div>*@
                    </div>

                    @*<div class="row margin-top-05">
                    <div class="col-md-2 control-label">
                        HV_HS_KQ_BC1
                    </div>
                    <div class="col-md-4">
                        @Html.TextBoxFor(model => model.HV_HS_KQ_BC1, new { @class = "form-control", @type = "number" })

                    </div>

                    <div class="col-md-2 control-label">
                        HV_HS_KQ_BC1_MOTA
                    </div>
                    <div class="col-md-4">
                        @Html.TextBoxFor(model => model.HV_HS_KQ_BC1_MOTA, new { @class = "form-control" })

                    </div>
                </div>*@

                    <div class="row margin-top-05">
                        <div class="col-md-2 control-label">
                            Số chứng nhận vào sổ
                        </div>
                        <div class="col-md-4">
                            @Html.TextBoxFor(model => model.HV_HS_VAOSOCNNSO, new { @class = "form-control" })

                        </div>

                        <div class="col-md-2 control-label">
                            Ngày chứng nhận vào sổ
                        </div>
                        <div class="col-md-4">

                            @Html.TextBoxFor(model => model.HV_HS_NGAYVAOSOCNN, "{0:dd/MM/yyyy}", new { @class = "form-control", @style = "width:120px" })
                        </div>
                    </div>

                    <div class="row margin-top-05">
                        <div class="col-md-2 control-label">
                            Xếp loại tốt nghiệp
                        </div>
                        <div class="col-md-4">
                            @Html.TextBoxFor(model => model.HV_HS_XEPLOAITN, new { @class = "form-control" })

                        </div>

                        <div class="col-md-2 control-label">
                            Ngày cấp chứng chỉ nghề
                        </div>
                        <div class="col-md-4">

                            @Html.TextBoxFor(model => model.HV_HS_NGAYCAPCCN, "{0:dd/MM/yyyy}", new { @class = "form-control", @style = "width:120px" })
                        </div>
                    </div>

                    <div class="row margin-top-05">
                        <div class="col-md-2 control-label">
                            Số QĐ tốt nghiệp
                        </div>
                        <div class="col-md-4">
                            @Html.TextBoxFor(model => model.HV_HS_SOQUYETDINHTN, new { @class = "form-control" })

                        </div>

                        <div class="col-md-2 control-label">
                            Ngày ra QĐTN
                        </div>
                        <div class="col-md-4">

                            @Html.TextBoxFor(model => model.HV_HS_NGAYRAQDTN, "{0:dd/MM/yyyy}", new { @class = "form-control", @style = "width:120px" })
                        </div>
                    </div>

                    <div class="row margin-top-05">
                        <div class="col-md-2 control-label">
                            Sổ sổ tốt nghiệp
                        </div>
                        <div class="col-md-4">
                            @Html.TextBoxFor(model => model.HV_HS_SOSOTN, new { @class = "form-control" })

                        </div>

                        <div class="col-md-2 control-label">
                            Ngày vào sổ TN
                        </div>
                        <div class="col-md-4">

                            @Html.TextBoxFor(model => model.HV_HS_NGAYVAOSOTN, "{0:dd/MM/yyyy}", new { @class = "form-control", @style = "width:120px" })
                        </div>
                    </div>

                    <div class="row margin-top-05">
                        <div class="col-md-2 control-label">
                            Ngày in giấy TN
                        </div>
                        <div class="col-md-4">

                            @Html.TextBoxFor(model => model.HV_HS_NGAYINGIAYTN, "{0:dd/MM/yyyy}", new { @class = "form-control", @style = "width:120px" })
                        </div>

                        <div class="col-md-2 control-label">
                            Năm cấp lần đầu
                        </div>
                        <div class="col-md-4">

                            @Html.TextBoxFor(model => model.HV_HS_NAMCAPLANDAU, new { @class = "form-control" })
                        </div>
                    </div>

                    <div class="row margin-top-05">
                        @*<div class="col-md-2 control-label">
                        HV_SOGPLXTMP
                    </div>
                    <div class="col-md-4">

                        @Html.TextBoxFor(model => model.HV_SOGPLXTMP, new { @class = "form-control"})
                    </div>*@

                        @*<div class="col-md-2 control-label">
                        Năm cấp lần đầu
                    </div>
                    <div class="col-md-4">

                        @Html.TextBoxFor(model => model.HV_HS_NAMCAPLANDAU, new { @class = "form-control" })
                    </div>*@
                    </div>

                    <div class="row margin-top-05">
                        <div class="col-md-2 control-label">
                            Trạng thái
                        </div>
                        <div class="col-md-4">
                            @Html.CheckBoxFor(model => model.HV_HS_ACTIVE, new { @class = "checkbox" })
                        </div>


                    </div>






                </fieldset>


            </div>


        </div>


    </div>



    <br />

    <div class="row">
        <div class="col-md-12">
            @*<input type="submit" value="Cập nhật" class="btn btn-info btn-sm" />*@
            <button type="submit" class="btn btn-danger btn-sm">
                <span class="glyphicon glyphicon-floppy-disk"></span> Cập nhật
            </button>
            &nbsp;&nbsp;
            @Html.ActionLink("Quay lại", "Index", null, new { @class = "btn btn-primary btn-sm" })
        </div>

    </div>
}

<script src="~/Scripts/jquery.validate.min.js"></script>
<script src="~/Scripts/jquery.validate.unobtrusive.min.js"></script>

<script src="~/Scripts/datepicker.js"></script>
<script src="~/Scripts/jquery-ui-1.11.4.js"></script>
<script src="~/Scripts/jquery.maskedinput.js"></script>
<script src="~/Scripts/jquery.maskMoney.js"></script>
<script src="~/Scripts/jquery.number.js"></script>
<script src="~/Scripts/jquery.masknumber.js"></script>
<script src="~/Scripts/moment.js"></script>

<script type="text/javascript">
    $(document).tooltip();
    // Voi jQuery 1.9 > thi chi validate gia tri trong active tab
    // Muon validate nhung gia tri trong cac tab khac nua thi dung jquery.validate 1.8.1 or 1.7


    // mask edit cho truong ngay thang (su dung jquery.maskedinput)


    function ToJavaScriptDate(value) {
        if (value != null) {
            var pattern = /Date\(([^)]+)\)/;
            var results = pattern.exec(value);
            var dt = new Date(parseFloat(results[1]));
            return dt.getDate() + "/" + (dt.getMonth() + 1) + "/" + dt.getFullYear();
        }
        return null;
    }
</script>

<script type='text/javascript'>
    $(document).on('change', '.btn-file :file', function () {
        var input = $(this),
            numFiles = input.get(0).files ? input.get(0).files.length : 1,
            label = input.val().replace(/\\/g, '/').replace(/.*\//, '');
        input.trigger('fileselect', [numFiles, label]);
    });

    function preview_image(event) {
        var reader = new FileReader();
        reader.onload = function () {
            var output = document.getElementById('output_image');
            output.src = reader.result;
        }
        reader.readAsDataURL(event.target.files[0]);
    }
</script>

<script type="text/javascript">
    $("#HV_HS_NGAY_NHANHS").datepicker({
        changeMonth: true,
        changeYear: true,

        dateFormat: 'dd/mm/yy'
    });

    $("#HV_HS_NGAYHENTRA").datepicker({
        changeMonth: true,
        changeYear: true,

        dateFormat: 'dd/mm/yy'
    });

    $("#HV_HS_NGAYNHANANH").datepicker({
        changeMonth: true,
        changeYear: true,

        dateFormat: 'dd/mm/yy'
    });

    $("#HV_HS_NGAYCAPGPLXDACO").datepicker({
        changeMonth: true,
        changeYear: true,

        dateFormat: 'dd/mm/yy'
    });

    ///
    $("#HV_HS_NGAYHHGPLXDACO").datepicker({
        changeMonth: true,
        changeYear: true,

        dateFormat: 'dd/mm/yy'
    });

    $("#HV_HS_NGAYTTGPLXDACO").datepicker({
        changeMonth: true,
        changeYear: true,

        dateFormat: 'dd/mm/yy'
    });

    $("#HV_HS_NGAYQDSH").datepicker({
        changeMonth: true,
        changeYear: true,

        dateFormat: 'dd/mm/yy'
    });

    $("#HV_HS_NGAYQDTT").datepicker({
        changeMonth: true,
        changeYear: true,

        dateFormat: 'dd/mm/yy'
    });

    ///
    //$("#HV_HS_NGAYKTBC1").datepicker({
    //    changeMonth: true,
    //    changeYear: true,

    //    dateFormat: 'dd/mm/yy'
    //});

    //$("#HV_HS_NGAYKTBC2").datepicker({
    //    changeMonth: true,
    //    changeYear: true,

    //    dateFormat: 'dd/mm/yy'
    //});

    $("#HV_HS_NGAYVAOSOCNN").datepicker({
        changeMonth: true,
        changeYear: true,

        dateFormat: 'dd/mm/yy'
    });

    $("#HV_HS_NGAYCAPCCN").datepicker({
        changeMonth: true,
        changeYear: true,

        dateFormat: 'dd/mm/yy'
    });

    ///
    $("#HV_HS_NGAYRAQDTN").datepicker({
        changeMonth: true,
        changeYear: true,

        dateFormat: 'dd/mm/yy'
    });

    $("#HV_HS_NGAYVAOSOTN").datepicker({
        changeMonth: true,
        changeYear: true,

        dateFormat: 'dd/mm/yy'
    });

    $("#HV_HS_NGAYINGIAYTN").datepicker({
        changeMonth: true,
        changeYear: true,

        dateFormat: 'dd/mm/yy'
    });



    $("#HV_HS_NGAY_NHANHS").mask("99/99/9999", { placeholder: "dd/mm/yyyy" });
    $("#HV_HS_NGAYHENTRA").mask("99/99/9999", { placeholder: "dd/mm/yyyy" });
    $("#HV_HS_NGAYNHANANH").mask("99/99/9999", { placeholder: "dd/mm/yyyy" });
    $("#HV_HS_NGAYCAPGPLXDACO").mask("99/99/9999", { placeholder: "dd/mm/yyyy" });

    $("#HV_HS_NGAYHHGPLXDACO").mask("99/99/9999", { placeholder: "dd/mm/yyyy" });
    $("#HV_HS_NGAYTTGPLXDACO").mask("99/99/9999", { placeholder: "dd/mm/yyyy" });
    $("#HV_HS_NGAYQDSH").mask("99/99/9999", { placeholder: "dd/mm/yyyy" });
    $("#HV_HS_NGAYQDTT").mask("99/99/9999", { placeholder: "dd/mm/yyyy" });

    //$("#HV_HS_NGAYKTBC1").mask("99/99/9999", { placeholder: "dd/mm/yyyy" });
    //$("#HV_HS_NGAYKTBC2").mask("99/99/9999", { placeholder: "dd/mm/yyyy" });
    $("#HV_HS_NGAYVAOSOCNN").mask("99/99/9999", { placeholder: "dd/mm/yyyy" });
    $("#HV_HS_NGAYCAPCCN").mask("99/99/9999", { placeholder: "dd/mm/yyyy" });

    $("#HV_HS_NGAYRAQDTN").mask("99/99/9999", { placeholder: "dd/mm/yyyy" });
    $("#HV_HS_NGAYVAOSOTN").mask("99/99/9999", { placeholder: "dd/mm/yyyy" });
    $("#HV_HS_NGAYINGIAYTN").mask("99/99/9999", { placeholder: "dd/mm/yyyy" });

    // cho phep nhap so thap phan (su dung jquery.number)
    //$("#GV_THAMNIENLX").number(true, 2, '.', '');

</script>

@Styles.Render("~/Content/themes/base/css")

<script type="text/javascript">
    $(document).ready(function () {
        $('.btn-file :file').on('fileselect', function (event, numFiles, label) {

            var input = $(this).parents('.input-group').find(':text'),
                log = numFiles > 1 ? numFiles + ' files selected' : label;

            if (input.length) {
                input.val(log);
            } else {
                if (log) alert(log);
            }

        });
       
        $("#HV_HS_DVGTVT_MA").autocomplete({
            source: function (request, response) {
                $.ajax({
                    url: "/GPS_HocVienHoSo/AutoCompleteDVGTVT_MA",
                    type: "POST",
                    dataType: "json",
                    data: { term: request.term },
                    success: function (data) {
                        response($.map(data, function (item) {
                            return { label: item.DVGTVT_TEN, value: item.DVGTVT_MA + ':' + item.DVGTVT_TEN };
                        }))


                    }
                })
            },
            change: function (event, ui) {
                var _val = $("#HV_HS_DVGTVT_MA").val();
                if (_val != null && _val != '') {
                    $.ajax({
                        url: '@Url.Action("getHV_MA", "GPS_HocVienHoSo")',
                        type: 'post',
                        data: {
                            gv_DVGTVT_MA: $('#HV_HS_DVGTVT_MA').val()
                        }
                    }).done(function (response) {

                        $('#HV_HS_HV_MA').val(response);
                    });
                }
            },
            messages: {
                noResults: "", results: ""
            }
        }).click(function () {
            $(this).val("");
            $(this).autocomplete("search");
        });

        //HV_HS_DVGTVT_MA_NHANHS
        $("#HV_HS_DVGTVT_MA_NHANHS").autocomplete({
            source: function (request, response) {
                $.ajax({
                    url: "/GPS_HocVienHoSo/AutoCompleteDVGTVT_MA",
                    type: "POST",
                    dataType: "json",
                    data: { term: request.term },
                    success: function (data) {
                        response($.map(data, function (item) {
                            return { label: item.DVGTVT_TEN, value: item.DVGTVT_MA + ':' + item.DVGTVT_TEN };
                        }))


                    }
                })
            },

            messages: {
                noResults: "", results: ""
            }
        }).click(function () {
            $(this).val("");
            $(this).autocomplete("search");
        });

        //HV_HS_DVGTVT_MA_GPLXDACO
        $("#HV_HS_DVGTVT_MA_GPLXDACO").autocomplete({
            source: function (request, response) {
                $.ajax({
                    url: "/GPS_HocVienHoSo/AutoCompleteDVGTVT_MA",
                    type: "POST",
                    dataType: "json",
                    data: { term: request.term },
                    success: function (data) {
                        response($.map(data, function (item) {
                            return { label: item.DVGTVT_TEN, value: item.DVGTVT_MA + ':' + item.DVGTVT_TEN };
                        }))


                    }
                })
            },

            messages: {
                noResults: "", results: ""
            }
        }).click(function () {
            $(this).val("");
            $(this).autocomplete("search");
        });


        })
</script>
